package com.congiya.pilot;

import java.util.Collection;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.congiya.struts2.FrontActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class PersonAction extends FrontActionSupport  implements ModelDriven<Object> {

	private final Log logger = LogFactory.getLog(getClass());
    /**
	 * 
	 */
	private static final long serialVersionUID = 7894621742796195158L;
	private PersonVO model = new PersonVO();
    private String id;
    private Collection<PersonVO> list;
    
    
    public String list() {
    	logger.debug("PersonAction.list");
    	
    	return "list";
    }
    
    
	@Override    
    public Object getModel() {
        return (list != null ? list : model);
    }
    
    //private OrdersService ordersService = new OrdersService();
}
